<?php
/**
 * Created by PhpStorm.
 * User: alice
 * Date: 2015/12/28
 * Time: 12:26
 */

/**
 * Class Involved_LogisticsStatusModel
 */

class Involved_LogisticsStatusModel extends BaseModel{

    protected $table = 'logistics_status';


    /**
     * 订单状态
     * @param $order_id
     * @return mixed
     */
    public function GetOrderStatus($order_id)
    {
        return DB::table($this->table)
            ->select('log_status as update_event','log_time as update_time')
            ->where('order_id', $order_id)
            ->orderBy('status_id', 'desc')
            ->get();
    }
}